#######################################
###		INC		    ###
#######################################


ifndef	INC_INCLUDED
INC_INCLUDED	= 1

include $(AB_PATH)/Makefile.options

ASM	= $(Q)nasm
DISASM	= $(Q)ndisasm
MAKE	= $(Q)make
IMG	= $(Q)aimg
CC	= $(Q)gcc -O$(OPT_C) -Wall
OBJCOPY	= $(Q)objcopy
LINK	= $(Q)ld
MSG	= $(Q)echo
CP	= $(Q)copy
DEL	= $(Q)del


# infinite loop without commenting.
MAKEFILES = Makefile #$(AB_PATH)/Makefile $(AB_PATH)/Makefile.inc $(AB_PATH)/Makefile.options


VMPATH	= $(AB_PATH)/../vm/

# virtual machines
BOCHS	= $(Q)C:\Program Files\Bochs-2.4.2\bochs
BOCHSDBG= $(Q)C:\Program Files\Bochs-2.4.2\bochsdbg
BOCHSRC	= $(VMPATH)bochsrc.bxrc

%.bin: %.asm $(MAKEFILES)
	$(ASM) $*.asm -o $*.bin -l $*.lst -f bin

%.o: %.c $(MAKEFILES)
	$(CC) -c $*.c -o $*.o

default: all

bochs: all
	$(BOCHS) -f $(BOCHSRC) -q

bochsdbg: all
	$(BOCHSDBG) -f $(BOCHSRC) -q

vmware:
	# not ready yet
	$(MSG) "not ready yet"
qemu:
	# not ready yet
	$(MSG) "not ready yet"

endif
